import request from '@/utils/request'

export function runProjectTrans(data) {
  return request({
    url:'UserMoney/runProjectTrans',
    method:'post',
    data
  })
}
//Art/index

export function getArticles(data) {
  return request({
    url:'Art/index',
    method:'post',
    data
  })
}

//Art/details
export function getArticleDetails(data) {
  return request({
    url:'Art/details',
    method:'post',
    data
  })
}

//Art/getBannerList
export function getBanners(data) {
  return request({
    url:'Art/getBannerList',
    method:'post',
    data
  })
}

//
export function updateNick(data) {
  return request({
    url:'Userinfo/saveUserName',
    method:'post',
    data
  })
}
//Userinfo/saveSex
export function updateGender(data) {
  return request({
    url:'Userinfo/saveSex',
    method:'post',
    data
  })
}

//Userinfo/savePhone
export function updatePhone(data) {
  return request({
    url:'Userinfo/savePhone',
    method:'post',
    data
  })
}
// Userinfo/saveEmail
export function updateEmail(data) {
  return request({
    url:'Userinfo/saveEmail',
    method:'post',
    data
  })
}
//Userinfo/runSaveAudit
export function updateAudit(data) {
  return request({
    url:'Userinfo/runSaveAudit',
    method:'post',
    data
  })
}

//C2C/runAddBank
export function addPayType(data) {
  return request({
    url:'C2C/runAddBank',
    method:'post',
    data
  })
}

//C2C/getBankList
export function getMyPayTypes(data) {
  return request({
    url:'C2C/getBankList',
    method:'post',
    data
  })
}

//C2C/runBankStatus
export function changePayType(data) {
  return request({
    url:'C2C/runBankStatus',
    method:'post',
    data
  })
}

//Userinfo/getQrCode
export function getPromote(data) {
  return request({
    url:'Userinfo/getQrCode',
    method:'post',
    data
  })
}

//Userinfo/runSavePwd
export function updatePassword(data, type) {
  return request({
    url: type === '1' ? 'Userinfo/runSavePwd' : 'Userinfo/runSaveTwoPwd',
    method:'post',
    data
  })
}

//goods/getOrders
export function getOrders(data) {
  return request({
    url:'goods/getOrders',
    method:'post',
    data
  })
}

//goods/setOrderStatus
export function setOrderStatus(data) {
  return request({
    url:'goods/setOrderStatus',
    method:'post',
    data
  })
}

//goods/getOrderDetail
export function getOrderDetail(data) {
  return request({
    url:'goods/getOrderDetail',
    method:'post',
    data
  })
}
//Userinfo/username
export function getMyCommunity(data) {
  return request({
    url:'Userinfo/getDownList',
    method:'post',
    data
  })
}

//Userinfo/savePic
export function updateAvatar(data) {
  return request({
    url:'Userinfo/savePic',
    method:'post',
    data
  })
}
